package com.ptswitch.material.service;

import java.util.List;

import com.ptswitch.material.model.common.Uzer;
import com.ptswitch.material.model.security.Role;

public interface RoleService {

    void initRoles();

    //
    List<Uzer> listUserByRoleInfo(String roleId, String username, boolean in, long first, long size);

    long countUserByRoleInfo(String roleId, String username, boolean in);

    //
    Role findById(String id);

    List<Role> findRoles(Role... roles);

    List<Role> findRoles(List<Role> roles);

    List<Role> findByRoleGroup(String roleGroup);

    List<Role> findNormalRoles();

    List<Role> findRelateRoles();

    void save(Role role);

    List<Role> findAll(long first, long size);
}
